INPUTS

str
- string to copy
memory
- location to write the value to